package com.tql.view.mapper;

import com.tql.view.pojo.Notice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface NoticeMapper {
    //获取最新的一条消息
    public Notice getLastOne();
    //查看全部通知
    public List<Notice> getAllNotice(Integer page, Integer size);
    //插入一条通知
    public void insertNotice(Map<String,Object> params);
    //根据id删除通知
    public void deleteNotice(@Param("id")String id);
}
